<?php

/**
 * 基类:初始化网站
 * @author: kane
 * @createtime: 2012-02-13 14:28:31
 */
/*
 * 定义路径的全局变量
 */
@session_start();
define('CORE_PATH', ROOT_PATH . '/core');
define('DATA_PATH', ROOT_PATH . '/data');
define('ACTION_PATH', ROOT_PATH . '/lib/Action');
define('MODEL_PATH', ROOT_PATH . '/lib/Model');
define('EXTEND_PATH', ROOT_PATH . '/extend');
define('CACHE_PATH', DATA_PATH . '/cache');
define('TOP_TMP_PATH', CACHE_PATH . '/toptmp/');

/*
 * 加载初始文件
 */
require_once CORE_PATH . '/functions.php'; //其中加载了配置文件
require_once CORE_PATH . '/templates.class.php';
require_once CORE_PATH . '/Action.php';
require_once CORE_PATH . '/Model.php';
require_once DATA_PATH . '/language/' . KC('lang') . ".php";

//加载扩展类
require_once EXTEND_PATH . '/Taobao.class.php';
?>